home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung / Power-Programmierung (Tewi)(1994).iso / magazine / spoc88 / tbcoml / parmdemo.bas < prev   
BASIC Source File  |  1988-06-22  |  1KB  |  31 lines

  1. ' Author: Duke Kamstra
  2. ' Mod. date: 5/8/88
  3. '
  4. ' This program demonstrates the subroutines FNParamCount%() and
  5. ' FNParamStr$().
  6. '
  7. ' Compilation instructions:
  8. '   I. In the Turbo Basic Integrated Development Environment:
  9. '    a. Load the program into the Turbo Basic editor.
  10. '    b. In the Options\Parameter line menu define a command
  11. '       line parameter list. For example:
  12. '        this is a "test parameter list"
  13. '    c. Press ALT-R to run the program in memory.
  14. '  II. From a .EXE file:
  15. '    a. Load the program into the Turbo Basic editor.
  16. '    b. In the Options\Compile to menu select EXE file.
  17. '    c. Press ALT-C to compile PARAM.BAS to PARAM.EXE.
  18. '    d. Press ALT-F Q to leave the Turbo Basic Integrated
  19. '       Development Environment.
  20. '    e. At the DOS command line type:
  21. '       PARAM  this is a "test parameter list"
  22.  
  23. $INCLUDE "PARAM"    ' Include the command line parameter routines
  24.  
  25. CLS
  26. PRINT FNParamCount%;" parameters were passed to PARMDEMO"
  27. PRINT "The parameters are:"
  28. FOR I% = 1 TO FNParamCount%
  29.   PRINT "Parameter# ";I%,FNParamStr$(I%)
  30. NEXT I%
  31.